package com.lindroy.jetpacknotes.navigation.navigationui.fragment

import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import com.lindroy.jetpacknotes.R
import com.lindroy.jetpacknotes.base.BaseFragment
import kotlinx.android.synthetic.main.fragment_home.*

class SettingsFragment : BaseFragment(R.layout.fragment_home) {

    override fun initView(savedInstanceState: Bundle?) {
        textView.text = getString(R.string.settings)
        //setHasOptionsMenu() 必须设置为true 才能修改菜单栏
        setHasOptionsMenu(true)
    }

    override fun initListener() {
    }

    override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
        menu.clear()    //清除 Activity 中的 Menu
//        super.onCreateOptionsMenu(menu, inflater)
    }

}